namespace VegetableSale.NET.Entities;

public class RefundListReturn
{
    private uint id;
    private int commid;
    private string commname;
    private double rfmoney;
    private int rfnumber;
    private string remark;
    private DateTime reftime;
    private string countnumbers;
    private string counttime;

    public RefundListReturn(uint id, int commid, string commname, double rfmoney, int rfnumber, string remark, DateTime reftime, string countnumbers, string counttime)
    {
        this.id = id;
        this.commid = commid;
        this.commname = commname;
        this.rfmoney = rfmoney;
        this.rfnumber = rfnumber;
        this.remark = remark;
        this.reftime = reftime;
        this.countnumbers = countnumbers;
        this.counttime = counttime;
    }

    public uint Id
    {
        get => id;
        set => id = value;
    }

    public int Commid
    {
        get => commid;
        set => commid = value;
    }

    public string Commname
    {
        get => commname;
        set => commname = value ?? throw new ArgumentNullException(nameof(value));
    }

    public double Rfmoney
    {
        get => rfmoney;
        set => rfmoney = value;
    }

    public int Rfnumber
    {
        get => rfnumber;
        set => rfnumber = value;
    }

    public string Remark
    {
        get => remark;
        set => remark = value ?? throw new ArgumentNullException(nameof(value));
    }
    

    public string Countnumbers
    {
        get => countnumbers;
        set => countnumbers = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Counttime
    {
        get => counttime;
        set => counttime = value ?? throw new ArgumentNullException(nameof(value));
    }
    public DateTime Reftime
    {
        get => reftime;
        set => reftime = value;
    }
}